#include <bits/stdc++.h>
using namespace std;

int main() {
  int t;
  cin >> t;

  while (t--) {
    long long n;
    cin >> n;
    long long cnt = n / 10;
    cnt += ((n % 10) == 9);
    cout << cnt << endl;
  }
}
